package org.yzhzc.common.security.exception;

import org.yzhzc.common.core.enums.ResultCode;
import lombok.Getter;


/**
 * 自定义异常，在 RuntimeException 基础上添加状态码
 */
@Getter
public class ServiceException extends RuntimeException {

    private final ResultCode resultCode;

    public ServiceException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
